This folder contains the release of the Multiprocessing API Library.
Contents
As shipped, this folder should contain the following files and subfolders:
MP.h the MP API header file
Multiprocessing API Library the shared library which implements the MP API
MP API Library Read Me this file
For development prurposes you should drag the entire Multiprocessing folder from the SDK into your ':MacOS Support:Headers:System Extras Headers:' folder. If you are not using Metrowerks use whatever the equivalent folder in your development environment is. Make an alias to the Multiprocessing API Library and put it into your Extensions folder. 'The MP API FAQs' document explains this technique in more detail.
“Undocumented” Functions
This section describes the “undocumented” features of the Multiprocessing API Library. These routines are not part of the Apple/DayStar MP API specification and they are not guaranteed to be supported in Copland. The primary reason for their inclusion into the Multiprocessing API Library is to facilitate the development and debugging of MP capable code.
_MPTaskIsToolboxSafe()
This Boolean function allows routines which are otherwise unaware that they are being called from an MP task to check to see if it is permissible to make a call to the Macintosh toolbox. (It is okay to make toolbox calls only if the routine is not being called from an MP task).
_MPAllocateSys()
Does the same thing as MPAllocate() except the memory is allocated from the system heap.
_MPLibraryVersion()
Retrieves the hardcoded version information built into the currently active Multiprocessing API Library.
_MPDebugStr()
This function works just like DebugStr() except that it is safe to call it from an MP task.
_MPStatusPString()
_MPStatusCString()
These functions provide a way to translate an OSStatus value returned from one of the MP API calls into either a Pascal string or a C string. Thus, if an MPLibrary function returns an error then the application (not a task) could use the following:
status = MPFunction( function_params );
DebugStr( _MPStatusPString( status ) );
Support
For support, send email to "mp@daystar.com" or call (770) 967 2077 x267. We will have a mailing list for future releases of this API.